<template>
  <div>
    <h1>app.vue</h1>
    <button @click="show=false">关闭</button>
    <son v-if="show"/>
  </div>
</template>

<script>
import son from './components/son'
export default {
  components: {
    son
  },
  data() {
    return {
      show: true,
    };
  },
}
</script>

<style>

</style>